<?php
$doc = $this->getContractDoc($this->houseId);
?>
<div class="popform">
    <?php
    if (!empty($doc)) {

        $user = $this->getUserDetail($doc['uploader_id']);
        ?>
        <p><strong>Contract:</strong></p>
        <div class="popup-filelist">

            <ul>
                <li style="list-style: disc inside none"> 
                    <a href="<?= $this->baseURI(); ?>planning/document/download/<?= $doc['file']; ?>"><?= $doc['name']; ?></a>
                    by <?=$user['fname'].' '.$user['lname'];?> at <?=$doc['date'];?>
                </li>
            </ul>

        </div>
    <?php } ?>
</div>
